package com.xunji.user.common;



public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 8832650084951672891L;

    private final ResultType resultType;

    public BaseException() {
        this.resultType = ResultCodeEnum.FAIL;
    }

    public BaseException(ResultType resultType) {
        this.resultType = resultType;
    }

    public BaseException(ResultType resultType, String message) {
        super(message);
        this.resultType = resultType;
    }

    public BaseException(ResultType resultType, Throwable cause) {
        super(cause);
        this.resultType = resultType;
    }

    public BaseException(ResultType resultType, String message, Throwable cause) {
        super(message, cause);
        this.resultType = resultType;
    }

    public ResultType getResultType() {
        return resultType;
    }
}
